export default {
  namespaced: true,
  state: {
    menuList: [],
    menuActiveName: '',
    // 内容, 是否需要刷新
    contentIsNeedRefresh: false,
    content:'',
  },
  mutations: {
    setContent(state, content){
      state.content = content
    },
    updateMenuList (state, list) {
      state.menuList = list
    },
    updateMenuActiveName (state, name) {
      state.menuActiveName = name
    },
    updateContentIsNeedRefresh (state, status) {
      state.contentIsNeedRefresh = status
    },
  },
  getters: {

    //get方法

    getContent: state => state.content

  },
}
